package com.servicesManagement.model;
// Generated Dec 13, 2014 11:53:18 AM by Hibernate Tools 3.2.1.GA

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * DependencyType generated by hbm2java
 */
@Entity
@Table(name = "DEPENDENCY_TYPE", schema = "SANKAR")
public class DependencyType implements java.io.Serializable {

    private BigDecimal dependencyTypeId;
    private BigDecimal changedByUserId;
    private Date changedDate;
    private BigDecimal createdByUserId;
    private Date createdDate;
    private String description;
    //private Set<AspectConfGroup> aspectConfGroups = new HashSet<AspectConfGroup>(0);
    // private Set<> serviceGroups = new HashSet(0);
    @JsonIgnore
   // private Set<AspectListGroup> aspectListGroups = new HashSet<AspectListGroup>(0);

    public DependencyType() {
    }

    public DependencyType(BigDecimal dependencyTypeId) {
        this.dependencyTypeId = dependencyTypeId;
    }

    public DependencyType(BigDecimal dependencyTypeId, BigDecimal changedByUserId, Date changedDate, BigDecimal createdByUserId, Date createdDate, String description, Set aspectConfGroups, Set serviceGroups, Set aspectListGroups) {
        this.dependencyTypeId = dependencyTypeId;
        this.changedByUserId = changedByUserId;
        this.changedDate = changedDate;
        this.createdByUserId = createdByUserId;
        this.createdDate = createdDate;
        this.description = description;
        //      this.aspectConfGroups = aspectConfGroups;
//       this.serviceGroups = serviceGroups;
      //  this.aspectListGroups = aspectListGroups;
    }

    @Id
    @Column(name = "DEPENDENCY_TYPE_ID", unique = true, nullable = false, scale = 0)
    public BigDecimal getDependencyTypeId() {
        return this.dependencyTypeId;
    }

    public void setDependencyTypeId(BigDecimal dependencyTypeId) {
        this.dependencyTypeId = dependencyTypeId;
    }

    @Column(name = "CHANGED_BY_USER_ID")
    public BigDecimal getChangedByUserId() {
        return this.changedByUserId;
    }

    public void setChangedByUserId(BigDecimal changedByUserId) {
        this.changedByUserId = changedByUserId;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "CHANGED_DATE", length = 7)
    public Date getChangedDate() {
        return this.changedDate;
    }

    public void setChangedDate(Date changedDate) {
        this.changedDate = changedDate;
    }

    @Column(name = "CREATED_BY_USER_ID")
    public BigDecimal getCreatedByUserId() {
        return this.createdByUserId;
    }

    public void setCreatedByUserId(BigDecimal createdByUserId) {
        this.createdByUserId = createdByUserId;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "CREATED_DATE", length = 7)
    public Date getCreatedDate() {
        return this.createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    @Column(name = "DESCRIPTION")
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="dependencyType")
//    public Set<AspectConfGroup> getAspectConfGroups() {
//        return this.aspectConfGroups;
//    }
//    
//    public void setAspectConfGroups(Set<AspectConfGroup> aspectConfGroups) {
//        this.aspectConfGroups = aspectConfGroups;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="dependencyType")
//    public Set getServiceGroups() {
//        return this.serviceGroups;
//    }
//    
//    public void setServiceGroups(Set serviceGroups) {
//        this.serviceGroups = serviceGroups;
//    }

//    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dependencyType")
//    public Set<AspectListGroup> getAspectListGroups() {
//        return this.aspectListGroups;
//    }
//
//    public void setAspectListGroups(Set<AspectListGroup> aspectListGroups) {
//        this.aspectListGroups = aspectListGroups;
//    }
}
